import http from '@/utils/request'

export const reqGetUserList = (page = 1, size = 10) => http({
  method: 'GET',
  url: '/sys/user',
  params: {
    page,
    size
  }
})

/**
 *
 * @param {*} id 获取id删除员工
 *
 */
export const reqDelEmployee = (id) => http({

  method: 'delete',
  url: `/sys/user/${id}`

})
/**
 * 添加员工
 */
export const reqAddEmployee = (form) => http({

  method: 'post',
  url: '/sys/user',
  data: form
})

/**
 * 批量导入员工
 * @data {*} arr[{},{},{}]
 *
 */
export const reqAddEmployeeBatch = (form) => http({
  method: 'post',
  url: `/sys/user/batch`,
  data: form
})
